import request from '@/utils/request'

export function articleCateList(data) {
  return request({
    url: '/v1/article/categlory/find',
    method: 'post',
    data
  })
}

export function fetchOne(data) {
  return request({
    url: '/v1/article/categlory/get/by/id',
    method: 'post',
    data
  })
}

export function createCate(data) {
  return request({
    url: '/v1/article/categlory/add',
    method: 'post',
    data
  })
}

export function deleteCate(data) {
  return request({
    url: `/v1/article/categlory/delete`,
    method: 'post',
    data
  })
}

export function updataCate(data) {
  return request({
    url: `/v1/article/categlory/update`,
    method: 'post',
    data
  })
}

export function changeState(data) {
  return request({
    url: `/v1/article/categlory/update/hidden`,
    method: 'post',
    data
  })
}
